<div class="divupdate">
    <div class="notice" style="display: none"></div>
    <form id="user_add_form">
    <table class="">
        <thead><th colspan="6"><h4>User</h4></th></thead>
        <tbody>
            <tr>
                <td><label for="name">Name</label></td>
                <td>
                    <input id="id" name="id" type="hidden" value="<?php echo (isset($this->data) ? $this->data['userID'] : '');?>"/>
                    <input id="name" name="name" type="text" value="<?php echo (isset($this->data) ? $this->data['name'] : '');?>" placeholder="username"/>
                </td>
                    </tr>
                    <tr>
                        <td><label for="level">Group</label></td>
                        <td>
                            <select id="level" name="level" style="width: 100px">
                            <?php 
                                foreach ($this->level as $value) {
                                    echo $value;
                                }
                            ?>
                            </select>
                        </td>
                    </tr>                    
            <tr>
                <td colspan="2">
                <button id="save-btn" class="green" 
                        onclick="Web.Do({formid: '#user_add_form', param: {type: 'save'}});"> Save </button> &nbsp; 
                <button id="cancel-btn" class="" 
                        onclick="Web.Do({formid: '#user_add_form', param: {type: 'cancel'}});"> Cancel </button>
            </td>
        </tr>
        </tbody>
        <tfoot></tfoot>
    </table> 
    </form>
</div>